package io.renren.modules.workmanagement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.workmanagement.entity.DepartmentEntity;
import io.renren.modules.workmanagement.to.AssignUser;
import io.renren.modules.workmanagement.vo.TeachersAndDepartmentAdminVO;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author yewei
 * @email sunlightcs@gmail.com
 * @date 2022-02-19 16:02:49
 */
public interface DepartmentService extends IService<DepartmentEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void assignUser(AssignUser assignUser);

    TeachersAndDepartmentAdminVO getTeacherList(Long departmentId);

    void saveDepartment(DepartmentEntity department,Long userId);

    DepartmentEntity getByAdminId(Long userId);

    List<DepartmentEntity> likeByName(String key);
}

